/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package volcarobjetos;

import static java.lang.Math.PI;

/**
 *
 * @author User
 */
public class Circulo extends Figura{
    private float radio;

    public Circulo(float radio, String color) {
        super(color);
        this.radio = radio;
    }

   
    public float AreaCirculo(float radio){
    return (float) (PI*radio*radio);
    }
}
